package com.langyue.recordmanage.enums;

/**
 * @Description: 响应 枚举
 * @Author: wanglang
 * @CreateTime: 2022/4/3
 * @Company:
 */
public enum ResponseCodeEnum {
    FAIL(-1, "失败"),
    SUCCESS(0, "成功")
    ;

    // 状态码
    private int code;
    // 描述
    private String desc;

    ResponseCodeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
